using MicroMsg.Common.Utils;
using System;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.UserContrl
{
	public abstract class HubPlugCtrlPrevPageBase : UserControl
	{
		private static int sNID;
		public int mNID;
		private bool mBIsLoaded;
		public HubPlugCtrlPrevPageBase()
		{
			this.mNID = HubPlugCtrlPrevPageBase.sNID++;
			base.add_Loaded(new RoutedEventHandler(this.AsyncLoadCtrlBase_Loaded));
			base.add_Unloaded(new RoutedEventHandler(this.AsyncLoadCtrlBase_Unloaded));
			ShowObjectInMemory.AddOneObjectRecord(this);
		}
		~HubPlugCtrlPrevPageBase()
		{
			ShowObjectInMemory.RemoveOneObjectRecord(this);
		}
		protected virtual void Ctrl_Loaded()
		{
		}
		protected virtual void Ctrl_UnLoaded()
		{
		}
		private void AsyncLoadCtrlBase_Unloaded(object sender, RoutedEventArgs e)
		{
			this.mBIsLoaded = false;
			this.Ctrl_UnLoaded();
		}
		private void AsyncLoadCtrlBase_Loaded(object sender, RoutedEventArgs e)
		{
			this.mBIsLoaded = true;
			this.Ctrl_Loaded();
		}
		public virtual void OnLanguaeChange()
		{
		}
		public virtual void RefreshImg()
		{
		}
	}
}
